<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="update" method="post" enctype="multipart/form-data">
    <input type="hidden" name="id" value="{$data.id}">
    <p><input type="text" name="name" value="{$data.name}"></p>
    <p><input type="file" name="img" value=""><img src="{$data.img}" width="80px"></p>
    <p><input type="submit" value="修改"></p>
</form>
</body>
</html>